home *** CD-ROM | disk | FTP | other *** search
- ReadArchive "defshaders.vs"
-
- static stone_colors = SpectrumOfColors(
- [0.0, '0.988236,0.792157,0.0', 0.1, '0.988236,0.792157,0.0']
- [0.1, '0.890, 0.651, 0.612', 0.2, '1.000, 0.820, 0.675']
- [0.2, '0.980392,0.8,0.682353', 0.3, '0.980392,0.8,0.682353']
- [0.3, '0.890, 0.643, 0.612', 0.4, '0.937, 0.729, 0.561']
- [0.4, '0.847059,0.67451,0.533333', 0.5, '1.0,0.635294,0.0']
- [0.5, '0.878, 0.604, 0.565', 0.6, '0.984, 0.780, 0.655']
- [0.6, '1.0,0.635294,0.0', 0.7, '0.988235,0.792157,0.0']
- [0.7, '0.984, 0.780, 0.655', 0.8, '1.000, 0.863, 0.635']
- [0.8, '1.000, 0.863, 0.635', 0.9, '1.000, 0.765, 0.620']
- [0.9, '1.0,1.0,1.0', 1.001, '1.0,1.0,1.0'])
-
- static Worley = voronoi(Po,7)
-
- Declare mystone = Shader [ FunctionalSurface [
- Color stone_colors[Worley]
- Kd 0.75
- Ks(0.4 + 0.5*pow(Worley,4), '1,1,1')
- PhongSpecularBRDF 10*(1.0 - Worley)
- Iridescence(.25,.3,.3)
- ]
- Scale(0.5, 0.5, 0.5)
- ]
-